﻿using System;
using System.ComponentModel.DataAnnotations;

namespace courseProjectV1.Models
{
	public class SignUpModel
	{
		public SignUpModel()
		{
		}
        [Required(ErrorMessage = "Login is required")]
        public string Login { get; set; }

        [Required(ErrorMessage = "Password is required")]
        [DataType(DataType.Password)]
        public string Password { get; set; }

        [Required(ErrorMessage = "Confirmation password is required")]
        [DataType(DataType.Password)]
        [Compare("Password",ErrorMessage = "Password is wrong")]
        public string ConfirmPassword { get; set; }
    }
}

